#define   _CRT_SECURE_NO_WARNINGS  1
#include<stdio.h>
void year(int x)
{
	if (x % 100 != 0 && x % 4 == 0 || x % 400 == 0)
		printf("NO");
	printf("YES");

}
int main()
{
	int a;
	scanf("%d", &a);
	year(a);


	return 0;
}